package com.wink.file.center.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;


/**
 * 本机ossconfig
 * 使用nginx作为下载服务器，或者编写映射虚拟路径浏览器访问
 *
 *
 * @author wink
 * @date 2020/11/17 17:38:36
 */
@Configuration
public class LocalOSSConfig {

    public static String domain;

    public static String path;

    @Value("${file.oss.domain:xxxxx}")
    public void setDomain(String domain) {
        LocalOSSConfig.domain = domain;
    }

    @Value("${file.oss.path:xxxxx}")
    public void setBucketName(String path) {
        LocalOSSConfig.path = path;
    }

}
